package com.wc.blue_bridge_test.base.T62;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/12/28 14:45
 * @description Sine之舞
 * https://lx.lanqiao.cn/problem.page?gpid=T62
 */
public class Main {
    public static void main(String[] args) {
        StringBuffer[] A = new StringBuffer[201];
        A[1] = new StringBuffer("sin(1)");
        String s = "%d%csin(%d)";
        for (int i = 2; i <= 200; i++) {
            String ss = String.format(s, i - 1, (i & 1) == 1 ? '+' : '-', i);
            A[i] = new StringBuffer(A[i - 1]);
            int len = A[i].length();
            int numLen = String.valueOf(i - 1).length();
            A[i].replace(len - i - numLen + 1, len - i + 1, ss);
        }
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        StringBuffer ans = new StringBuffer();
        for (int i = 1; i < n; i++) {
            ans.insert(0, '(');
            ans.append(A[i]);
            ans.append('+');
            ans.append(n - i + 1);
            ans.append(')');
        }
        ans.append(A[n]);
        ans.append('+');
        ans.append(1);
        System.out.println(ans);
    }
}
